package org.example;

import org.example.model.Enum.ExamType;
import org.example.model.PoJo.ExamData;
import org.example.model.PoJo.StudentAnswer;
import org.example.service.serviceImpl.ExamSystemImpl;

public class Main {
    public static void main(String[] args) {
        /**
         * 答题
         */
        ExamSystemImpl examSystem = new ExamSystemImpl();
        ExamData examData = examSystem.initExam(ExamType.PHYSICS);
        StudentAnswer studentAnswer = examSystem.startExam(examData);
        System.out.println(studentAnswer.getStudentAnswersList());

        /**
         * 算分
         */
        System.out.println("最后得分:" + examSystem.score(studentAnswer,examData));
    }
}